﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="WebSystemAdmin.sys.RoleList" %>

<%@ Import Namespace="Enter.Common" %>
<%@ Import Namespace="Enter.Entity" %>
<%@ Register Assembly="aspNetPager" Namespace="Cncard.Web" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/admin_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="tb_data" cellpadding="0" cellspacing="1">
            <tr class="tr_title">
                <th colspan="7">
                    <a href="Sys_RoleEdit.aspx" class="A_Add">添加</a>
                </th>
            </tr>
            <tr class="tr_head">
                <td>
                    ID
                </td>
                <td>
                    角色名称
                </td>
                <td>
                    备注
                </td>
                <td>
                    状态
                </td>
                <td>
                    操作
                </td>
            </tr>
            <asp:Repeater ID="rp_Data" runat="server" OnItemCommand="rp_Data_ItemCommand">
                <ItemTemplate>
                    <tr class='<%#Container.ItemIndex%2==0?"tr_content_j":"tr_content_o" %>'>
                        <td>
                            <asp:Label ID="lbl_ID" runat="server" Text='<%#Eval("ID")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lbl_RoleName" runat="server" Text='<%#Eval("RoleName")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lbl_Memo" runat="server" Text='<%#Eval("Memo")%>'></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lbl_Status" runat="server" Text='<%# EnumHelper.GetEnumCNNameFromEnum((Sys_RoleEntity.EnumStatus)(byte)Eval("Status"))%>'></asp:Label>
                        </td>
                        <td>
                            <div>
                                <a href='RoleRightsForm.aspx?ID=<%# DataBinder.Eval(Container, "DataItem.ID") %>'>设置角色权限</a>
                                <a href='RoleEdit.aspx?ID=<%#Eval("ID")%>' class="A_edit">编辑</a><asp:LinkButton ID="LBtnDel"
                                    CommandName="Delete" class="A_Del" OnClientClick="return  confirm('你确认要删除吗?')"
                                    CommandArgument='<%#Eval("ID") %>' runat="server">删除</asp:LinkButton></div>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <cc1:AspNetPager ID="ucPager" runat="server" NumericButtonTextFormatString="[{0}]"
            HorizontalAlign="right" ShowCustomInfoSection="Left" OnPageChanged="ucPager_PageChanged">
        </cc1:AspNetPager>
    </div>
    </form>
</body>
</html>
